#! /bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH=/lib
export PATH LD_LIBRARY_PATH

mkdir -p /sys
mkdir -p /tmp
mkdir -p /proc
mkdir -p /mount
mkdir -p /lib/modules/`uname -r`


mount -a
mkdir -p /dev/pts
mount -t devpts devpts /dev/pts
mdev -s
mkdir -p /var/lock

# 添加动态调试接口
mkdir /sys/kernel/debug
mount -t debugfs none /sys/kernel/debug

mkdir /host_files
mount -t 9p -o trans=virtio,version=9p2000.L hostshare /host_files
PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:/host_files/bin:/host_files/sbin
PATH=$PATH:/host_files/install/sbin

echo "-----------------------------------"

echo " welcome to A9 vexpress board"

echo "-----------------------------------"
